<template>
  <h1>下拉选框组件</h1>
  <el-select v-model="city" placeholder="请选择你喜欢的城市" style="width: 50%;">
    <el-option label="三亚" value="sy"></el-option>
    <el-option label="大连" value="dl"></el-option>
    <el-option label="青岛" value="qd"></el-option>
    <el-option label="上海" value="sh"></el-option>
    <el-option label="广州" value="gz"></el-option>
  </el-select>
  <h4>你喜欢的城市是:{{city}}</h4>
</template>

<script setup>
import {ref} from "vue";

const city = ref('qd')
</script>

<style scoped>

</style>